home *** CD-ROM | disk | FTP | other *** search
/ Aminet 15 / Aminet 15 - Nov 1996.iso / Aminet / dev / lang / FPL_v147.lha / fpl / src / Makefile.Linux < prev    next >
Makefile  |  1996-08-21  |  3KB  |  84 lines

  1. # Linux Makefile v2 August 21 1996 (thanx to Bjorn Reese)
  2.  
  3. ########################################################################
  4. #                                                                      #
  5. # fpl.library - A shared library interpreting script langauge.         #
  6. # Copyright (C) 1992-1996 FrexxWare                                    #
  7. # Author: Daniel Stenberg                                              #
  8. #                                                                      #
  9. # This program is free software; you may redistribute for non          #
  10. # commercial purposes only. Commercial programs must have a written    #
  11. # permission from the author to use FPL. FPL is *NOT* public domain!   #
  12. # Any provided source code is only for reference and for assurance     #
  13. # that users should be able to compile FPL on any operating system     #
  14. # he/she wants to use it in!                                           #
  15. #                                                                      #
  16. # You may not change, resource, patch files or in any way reverse      #
  17. # engineer anything in the FPL package.                                #
  18. #                                                                      #
  19. # This program is distributed in the hope that it will be useful,      #
  20. # but WITHOUT ANY WARRANTY; without even the implied warranty of       #
  21. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                 #
  22. #                                                                      #
  23. # Daniel Stenberg                                                      #
  24. # Ankdammsgatan 36, 4tr                                                #
  25. # S-171 43 Solna                                                       #
  26. # Sweden                                                               #
  27. #                                                                      #
  28. # FidoNet 2:201/328    email:dast@sth.frontec.se                       #
  29. #                                                                      #
  30. ########################################################################
  31.  
  32. .SUFFIXES: .o .c .c~ .h .h~ .a .i
  33.  
  34. ################################################
  35. # Below follows all UNIX macros/actions/lines: #
  36. ################################################
  37. LIB     = libfpl.a
  38. TARGET  = FPL
  39. OBJS    = script.o numexpr.o caller.o hash.o statement.o memory.o frontend.o \
  40.           reference.o sprintf.o scan.o compile.o sscanf.o
  41. LIBOBJS = script.o numexpr.o hash.o statement.o memory.o frontend.o \
  42.           reference.o sprintf.o scan.o compile.o sscanf.o
  43. LIBDEP  = $(LIBOBJS)
  44.  
  45. # if using the `gcc' compiler:
  46. CFLAGS  = -DUNIX -DSHARED -ansi -pedantic -g -funsigned-char
  47. CC      = gcc
  48. LD      = gcc
  49. LDFLAGS = -shared
  50.  
  51. all:    $(LIB) SFPL
  52.  
  53. $(LIB) : $(LIBDEP)
  54.     $(LD) $(LDFLAGS) $(LIBOBJS) -o $(LIB) -lc
  55.     cp -p FPL.h ../include/libraries
  56.  
  57. $(TARGET) : $(OBJS)
  58.     $(CC) $(OBJS) -o $(TARGET)
  59.  
  60. .c.o:
  61.     $(CC) $(CFLAGS) -c $<
  62.  
  63. clean:
  64.     rm *.o
  65.     rm $(LIB) SFPL
  66.  
  67. # This compiling is using -DSFPL to make the MALLOC() macro not to use the
  68. # global `mem' variable!
  69. SFPL: caller.c FPL.h script.h Makefile.SVR4
  70.     $(CC) $(CFLAGS) -DSFPL -o SFPL caller.c -L. -lfpl
  71.  
  72. $(OBJS): script.h FPL.h
  73.  
  74. script.o:script.c
  75. numexpr.o:numexpr.c
  76. caller.o:caller.c
  77. statement.o:statement.c
  78. hash.o:hash.c
  79. memory.o:memory.c memory.h
  80. frontend.o:frontend.c
  81. reference.o:reference.c
  82. sprintf.o:sprintf.c
  83. scan.o:scan.c
  84.